package by.alex.dzeshko.lastfmsimple.api;

import android.util.Log;

public class YoutubeApi {

	private static final String SEARCH_TEMPLATE = "http://gdata.youtube.com/feeds/api/videos?q=%s&v=2&alt=json&max-results=1&format=6";
	private static final String LOG_TAG = "YoutubeApi";

	public static String searchVideo(String query) {
		String url = String.format(SEARCH_TEMPLATE,
				query.trim().replace(" ", "_"));
		Log.d(LOG_TAG, url);
		return url;
	}
	
}
